package com.zjitc.backend_shop.service.Impl;

import com.zjitc.backend_shop.mapper.PermissionMapper;
import com.zjitc.backend_shop.pojo.Permission;
import com.zjitc.backend_shop.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/*
    @author： 尤安托
    @date： 2025/3/11 18:03
*/
@Service
@Transactional
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;
    @Override
    public List<Permission> findAll() {
        return permissionMapper.selectAll();
    }
}
